<template>
    <div>
      <h2>child子组件部分</h2>
      <p>{{message}}</p>

      <button @click="sendHandle"> 向父亲组件传递 </button>


    </div>
</template>

<script>
    export default {
        name: 'home',
        data () {
            return {}
        },

        props:['message'],

        methods:{

          sendHandle(){
              this.$emit('ListFather','this message is from child')
          }
        }
    }
</script>
<style>

</style>
